package com.midou.administration.mapper;

import com.midou.administration.bo.DeskBo;
import com.midou.administration.bo.TypeDesk;
import com.midou.administration.bo.ZhuohaoBo;
import com.midou.administration.entity.Desk;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author MrChen
 * @since 2021-03-24
 */
public interface DeskMapper extends BaseMapper<Desk> {
    public List<Desk> queryDesk(TypeDesk typeDesk);
    public String queryQrPath(Integer id);
    public Integer delDesk(Integer did);

    public List<Desk> queryXcx(@Param("id")Integer id);
    public List<Desk> queryName(@Param("id")Integer id,@Param("did")Integer did);
    List<Desk> queryByBussiness( @Param("id") int id);

    int updateByidState(@Param("id") int i);

    /**
     * 按照商户id查询该商户下所有就餐人数
     * @param buid
     * @return
     */
    int doBuidFindSumPeople(@Param("buid") int buid);

    List<Desk> doBuidFindSevenDaysSumPeople(@Param("buid") int buid);
    List<Desk> queryZhuotai(@Param("id")Integer id);
    int queryZhuangtai(@Param("desk")Desk desk);
    int queryQuxiao(@Param("desk")Desk desk);

    int updateByidState(Integer deskId);

    List<Desk> queryZhuoh(@Param("zh")ZhuohaoBo zh);


}
